package com.sxt.mapper;

import java.util.List;

import com.sxt.domain.Role;

public interface RoleMapper {
    int deleteByPrimaryKey(Integer roleid);

    int insert(Role record);

    int insertSelective(Role record);

    Role selectByPrimaryKey(Integer roleid);

    int updateByPrimaryKeySelective(Role record);

    int updateByPrimaryKey(Role record);
    /*
     * 根据用户的id查找所有的角色
     */
    List<Role> queryRolesByUserId(Integer userid);
}